package net.chasing.androidbaseconfig.util;

import java.util.Collection;

/**
 * description : 集合工具类
 */
public class CollectionUtils {

    /**
     * 判断一个集合是否为空
     */
    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.size() == 0;
    }

    public static boolean isNotEmpty(Collection<?> collection) {
        return collection != null && collection.size() > 0 ;
    }
}
